class Base {
    success(ctx, data) {
        ctx.body = {
            code: 200,
            message: "success",
            ...data
        }
    }

    fail(ctx, error) {
        ctx.body = {
            code: 500,
            message: error || "Internet Server Error"
        }
    }
}

module.exports = Base;